package leetcode.editor.cn;
//[709]转换成小写字母
public class ToLowerCase709{
public static void main(String[] args) {
   Solution solution = new ToLowerCase709().new Solution();
   
}

  //leetcode submit region begin(Prohibit modification and deletion)
class Solution {
    public String toLowerCase(String s) {
        if (s == null || s.length() < 1) return s;

        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            char aChar = chars[i];
            int dur = (char) (aChar - 'A');
            if (dur >=0 && dur <26){
                chars[i] = (char) ('a'+ dur);
            }
        }

        return new String(chars);
    }
}
//leetcode submit region end(Prohibit modification and deletion)

}